package com.ibeeking.found.cop.service.common.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName  MsgMessageTaskSenderDO
 * @Description 客户群发发送人表
 * @Author ibeeking
 * @Date 2021-01-15 10:44
 **/
@Data
@TableName("msg_message_task_sender")
public class MsgMessageTaskSenderDO implements Serializable {
    private static final long serialVersionUID = -1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 任务id
     */
    @TableField(value = "task_id")
    private Long taskId;
    /**
     * single=发送给客户，group=发送给客户群
     */
    @TableField(value = "chat_type")
    private String chatType;

    /**
     * 朋友圈id
     */
    @TableField(value = "message_id")
    private Long messageId;

    /**
     * 企微返回的MsgId
     */
    @TableField(value = "message_code")
    private String messageCode;

    /**
     * 发送人id
     */
    @TableField(value = "sender_id")
    private Long senderId;

    /**
     * 发送人code
     */
    @TableField(value = "sender_code")
    private String senderCode;
    /**
     * 发送状态：0-未发送 2-已发送
     */
    @TableField(value = "send_status")
    private Integer sendStatus;
    /**
     * 发送时间
     */
    @TableField(value = "send_time")
    private LocalDateTime sendTime;
}
